package studia.figlewicz.dao.ejb;

// Generated 2011-06-15 09:11:23 by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Wycenyinstrumentow generated by hbm2java
 */
@Entity
@Table(name = "WYCENYINSTRUMENTOW", schema = "MARCIN", uniqueConstraints = @UniqueConstraint(columnNames = {
		"IDWYCENYPORTFELA", "KODUMOWY" }))
public class Wycenyinstrumentow implements java.io.Serializable {

	private BigDecimal idwycenyinstrumentu;
	private Planywycen planywycen;
	private Wycenyportfeli wycenyportfeli;
	private Instrumentypochodne instrumentypochodne;
	private BigDecimal cenarealna;
	private BigDecimal delta;
	private BigDecimal gamma;
	private BigDecimal rho;
	private BigDecimal vega;
	private Set<Wycenynog> wycenynogs = new HashSet<Wycenynog>(0);

	public Wycenyinstrumentow() {
	}

	public Wycenyinstrumentow(BigDecimal idwycenyinstrumentu,
			Planywycen planywycen, Wycenyportfeli wycenyportfeli,
			Instrumentypochodne instrumentypochodne) {
		this.idwycenyinstrumentu = idwycenyinstrumentu;
		this.planywycen = planywycen;
		this.wycenyportfeli = wycenyportfeli;
		this.instrumentypochodne = instrumentypochodne;
	}

	public Wycenyinstrumentow(BigDecimal idwycenyinstrumentu,
			Planywycen planywycen, Wycenyportfeli wycenyportfeli,
			Instrumentypochodne instrumentypochodne, BigDecimal cenarealna,
			BigDecimal delta, BigDecimal gamma, BigDecimal rho,
			BigDecimal vega, Set<Wycenynog> wycenynogs) {
		this.idwycenyinstrumentu = idwycenyinstrumentu;
		this.planywycen = planywycen;
		this.wycenyportfeli = wycenyportfeli;
		this.instrumentypochodne = instrumentypochodne;
		this.cenarealna = cenarealna;
		this.delta = delta;
		this.gamma = gamma;
		this.rho = rho;
		this.vega = vega;
		this.wycenynogs = wycenynogs;
	}

	@Id
	@Column(name = "IDWYCENYINSTRUMENTU", unique = true, nullable = false, precision = 22, scale = 0)
	public BigDecimal getIdwycenyinstrumentu() {
		return this.idwycenyinstrumentu;
	}

	public void setIdwycenyinstrumentu(BigDecimal idwycenyinstrumentu) {
		this.idwycenyinstrumentu = idwycenyinstrumentu;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IDPLANUWYCENY", nullable = false)
	public Planywycen getPlanywycen() {
		return this.planywycen;
	}

	public void setPlanywycen(Planywycen planywycen) {
		this.planywycen = planywycen;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IDWYCENYPORTFELA", nullable = false)
	public Wycenyportfeli getWycenyportfeli() {
		return this.wycenyportfeli;
	}

	public void setWycenyportfeli(Wycenyportfeli wycenyportfeli) {
		this.wycenyportfeli = wycenyportfeli;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "KODUMOWY", nullable = false)
	public Instrumentypochodne getInstrumentypochodne() {
		return this.instrumentypochodne;
	}

	public void setInstrumentypochodne(Instrumentypochodne instrumentypochodne) {
		this.instrumentypochodne = instrumentypochodne;
	}

	@Column(name = "CENAREALNA", precision = 24, scale = 12)
	public BigDecimal getCenarealna() {
		return this.cenarealna;
	}

	public void setCenarealna(BigDecimal cenarealna) {
		this.cenarealna = cenarealna;
	}

	@Column(name = "DELTA", precision = 24, scale = 12)
	public BigDecimal getDelta() {
		return this.delta;
	}

	public void setDelta(BigDecimal delta) {
		this.delta = delta;
	}

	@Column(name = "GAMMA", precision = 24, scale = 12)
	public BigDecimal getGamma() {
		return this.gamma;
	}

	public void setGamma(BigDecimal gamma) {
		this.gamma = gamma;
	}

	@Column(name = "RHO", precision = 24, scale = 12)
	public BigDecimal getRho() {
		return this.rho;
	}

	public void setRho(BigDecimal rho) {
		this.rho = rho;
	}

	@Column(name = "VEGA", precision = 24, scale = 12)
	public BigDecimal getVega() {
		return this.vega;
	}

	public void setVega(BigDecimal vega) {
		this.vega = vega;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "wycenyinstrumentow")
	public Set<Wycenynog> getWycenynogs() {
		return this.wycenynogs;
	}

	public void setWycenynogs(Set<Wycenynog> wycenynogs) {
		this.wycenynogs = wycenynogs;
	}

}
